import store from '@/store';

export default [
    {
        path: 'pay',
        name: 'AdminPay',
        component: () => import('@/views/zhifu/zhifu'),
        meta: { authLogin: true },
    },

    {
        path: 'favorite',
        name: 'Adminfavorite',
        component: () => import('@/views/favorite/list'),
        meta: { authLogin: true },
    },

    {
        path: "admins",
        name: "AdminadminsList",
        component: () => import("@/views/admins/list"),
        meta: { title: "管理员列表", authLogin: true }
    },
    {
        path: "adminsadd",
        name: "AdminadminsAdd",
        component: () => import("@/views/admins/add"),
        meta: { title: "添加管理员", authLogin: true }
    },
    {
        path: "adminsupdt",
        name: "AdminadminsUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true }
    },
    {
        path: "adminsupdtself",
        name: "AdminadminsUpdtSelf",
        props: route => ({ id: store.state.user.session.id }),
        component: () => import("@/views/admins/updt"),
        meta: { title: "编辑管理员", authLogin: true }
    },
    {
        path: "user",
        name: "AdminuserList",
        component: () => import("@/views/user/list"),
        meta: { title: "用户列表", authLogin: true }
    },
    {
        path: "useradd",
        name: "AdminuserAdd",
        component: () => import("@/views/user/add"),
        meta: { title: "添加用户", authLogin: true }
    },
    {
        path: "userupdt",
        name: "AdminuserUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/user/updt"),
        meta: { title: "编辑用户", authLogin: true }
    },
    {
        path: "userupdtself",
        name: "AdminuserUpdtSelf",
        props: route => ({ id: store.state.user.session.id }),
        component: () => import("@/views/user/updt"),
        meta: { title: "编辑用户", authLogin: true }
    },
    {
        path: "newskind",
        name: "AdminnewskindList",
        component: () => import("@/views/newskind/list"),
        meta: { title: "新闻分类列表", authLogin: true }
    },
    {
        path: "newskindadd",
        name: "AdminnewskindAdd",
        component: () => import("@/views/newskind/add"),
        meta: { title: "添加新闻分类", authLogin: true }
    },
    {
        path: "newskindupdt",
        name: "AdminnewskindUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/newskind/updt"),
        meta: { title: "编辑新闻分类", authLogin: true }
    },
    {
        path: "news",
        name: "AdminnewsList",
        component: () => import("@/views/news/list"),
        meta: { title: "新闻信息列表", authLogin: true }
    },
    {
        path: "news_admin",
        name: "AdminnewsListadmin",
        component: () => import("@/views/news/list-admin"),
        meta: { title: "新闻信息列表", authLogin: true }
    },
    {
        path: "newsadd",
        name: "AdminnewsAdd",
        component: () => import("@/views/news/add"),
        meta: { title: "添加新闻信息", authLogin: true }
    },
    {
        path: "newsupdt",
        name: "AdminnewsUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/news/updt"),
        meta: { title: "编辑新闻信息", authLogin: true }
    },
    {
        path: "newsdetail",
        props: route => ({ id: route.query.id }),
        name: "AdminnewsDetail",
        component: () => import("@/views/news/detail"),
        meta: { title: "新闻信息详情", authLogin: true }
    },


    {
        path: "emergencykind",
        name: "AdminemergencykindList",
        component: () => import("@/views/emergencykind/list"),
        meta: { title: "新闻分类列表", authLogin: true }
    },
    {
        path: "emergencykindadd",
        name: "AdminemergencykindAdd",
        component: () => import("@/views/emergencykind/add"),
        meta: { title: "添加新闻分类", authLogin: true }
    },
    {
        path: "emergencykindupdt",
        name: "AdminemergencykindUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/emergencykind/updt"),
        meta: { title: "编辑新闻分类", authLogin: true }
    },
    {
        path: "emergency",
        name: "AdminemergencyList",
        component: () => import("@/views/emergency/list"),
        meta: { title: "新闻信息列表", authLogin: true }
    },
    {
        path: "emergency_admin",
        name: "AdminemergencyListadmin",
        component: () => import("@/views/emergency/list-admin"),
        meta: { title: "新闻信息列表", authLogin: true }
    },
    {
        path: "emergencyadd",
        name: "AdminemergencyAdd",
        component: () => import("@/views/emergency/add"),
        meta: { title: "添加新闻信息", authLogin: true }
    },
    {
        path: "emergencyupdt",
        name: "AdminemergencyUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/emergency/updt"),
        meta: { title: "编辑新闻信息", authLogin: true }
    },
    {
        path: "emergencydetail",
        props: route => ({ id: route.query.id }),
        name: "AdminemergencyDetail",
        component: () => import("@/views/emergency/detail"),
        meta: { title: "新闻信息详情", authLogin: true }
    },
    {
        path: "complaint",
        name: "AdmincomplaintList",
        component: () => import("@/views/complaint/list"),
        meta: { title: "投诉列表", authLogin: true }
    },
    {
        path: "complaint_username",
        name: "AdmincomplaintListusername",
        component: () => import("@/views/complaint/list-username"),
        meta: { title: "投诉列表", authLogin: true }
    },
    {
        path: "complaintadd",
        name: "AdmincomplaintAdd",
        component: () => import("@/views/complaint/add"),
        meta: { title: "添加投诉", authLogin: true }
    },
    {
        path: "complaintupdt",
        name: "AdmincomplaintUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/complaint/updt"),
        meta: { title: "编辑投诉", authLogin: true }
    },
    {
        path: "complaintdetail",
        props: route => ({ id: route.query.id }),
        name: "AdmincomplaintDetail",
        component: () => import("@/views/complaint/detail"),
        meta: { title: "投诉详情", authLogin: true }
    },
    {
        path: "carousel",
        name: "AdmincarouselList",
        component: () => import("@/views/carousel/list"),
        meta: { title: "轮播图列表", authLogin: true }
    },
    {
        path: "carouseladd",
        name: "AdmincarouselAdd",
        component: () => import("@/views/carousel/add"),
        meta: { title: "添加轮播图", authLogin: true }
    },
    {
        path: "carouselupdt",
        name: "AdmincarouselUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/carousel/updt"),
        meta: { title: "编辑轮播图", authLogin: true }
    },
    {
        path: "attraction",
        name: "AdminattractionList",
        component: () => import("@/views/attraction/list"),
        meta: { title: "景点信息列表", authLogin: true }
    },
    {
        path: "attractionadd",
        name: "AdminattractionAdd",
        component: () => import("@/views/attraction/add"),
        meta: { title: "添加景点信息", authLogin: true }
    },
    {
        path: "attractionupdt",
        name: "AdminattractionUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/attraction/updt"),
        meta: { title: "编辑景点信息", authLogin: true }
    },
    {
        path: "attractiondetail",
        props: route => ({ id: route.query.id }),
        name: "AdminattractionDetail",
        component: () => import("@/views/attraction/detail"),
        meta: { title: "景点信息详情", authLogin: true }
    },
    {
        path: "attractionkind",
        name: "AdminattractionkindList",
        component: () => import("@/views/attractionkind/list"),
        meta: { title: "分类列表", authLogin: true }
    },
    {
        path: "attractionkindadd",
        name: "AdminattractionkindAdd",
        component: () => import("@/views/attractionkind/add"),
        meta: { title: "添加分类", authLogin: true }
    },
    {
        path: "attractionkindupdt",
        name: "AdminattractionkindUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/attractionkind/updt"),
        meta: { title: "编辑分类", authLogin: true }
    },
    {
        path: "strategy",
        name: "AdminstrategyList",
        component: () => import("@/views/strategy/list"),
        meta: { title: "行程规划列表", authLogin: true }
    },
    {
        path: "strategyadd",
        name: "AdminstrategyAdd",
        component: () => import("@/views/strategy/add"),
        meta: { title: "添加行程规划", authLogin: true }
    },
    {
        path: "strategyupdt",
        name: "AdminstrategyUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/strategy/updt"),
        meta: { title: "编辑行程规划", authLogin: true }
    },
    {
        path: "strategydetail",
        props: route => ({ id: route.query.id }),
        name: "AdminstrategyDetail",
        component: () => import("@/views/strategy/detail"),
        meta: { title: "行程规划详情", authLogin: true }
    },
    {
        path: "strategybooking",
        name: "AdminstrategybookingList",
        component: () => import("@/views/strategybooking/list"),
        meta: { title: "预定列表", authLogin: true }
    },
    {
        path: "strategybooking_username",
        name: "AdminstrategybookingListusername",
        component: () => import("@/views/strategybooking/list-username"),
        meta: { title: "预定列表", authLogin: true }
    },
    {
        path: "strategybookingadd",
        name: "AdminstrategybookingAdd",
        component: () => import("@/views/strategybooking/add"),
        meta: { title: "添加预定", authLogin: true }
    },
    {
        path: "strategybookingupdt",
        name: "AdminstrategybookingUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/strategybooking/updt"),
        meta: { title: "编辑预定", authLogin: true }
    },
    {
        path: "food",
        name: "AdminfoodList",
        component: () => import("@/views/food/list"),
        meta: { title: "地方美食列表", authLogin: true }
    },
    {
        path: "foodadd",
        name: "AdminfoodAdd",
        component: () => import("@/views/food/add"),
        meta: { title: "添加地方美食", authLogin: true }
    },
    {
        path: "foodupdt",
        name: "AdminfoodUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/food/updt"),
        meta: { title: "编辑地方美食", authLogin: true }
    },
    {
        path: "fooddetail",
        props: route => ({ id: route.query.id }),
        name: "AdminfoodDetail",
        component: () => import("@/views/food/detail"),
        meta: { title: "地方美食详情", authLogin: true }
    },
    {
        path: "foodkind",
        name: "AdminfoodkindList",
        component: () => import("@/views/foodkind/list"),
        meta: { title: "美食分类列表", authLogin: true }
    },
    {
        path: "foodkindadd",
        name: "AdminfoodkindAdd",
        component: () => import("@/views/foodkind/add"),
        meta: { title: "添加美食分类", authLogin: true }
    },
    {
        path: "foodkindupdt",
        name: "AdminfoodkindUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/foodkind/updt"),
        meta: { title: "编辑美食分类", authLogin: true }
    },

    {
        path: "performanceInfo",
        name: "AdminperformanceInfoList",
        component: () => import("@/views/performanceInfo/list"),
        meta: { title: "演出列表", authLogin: true }
    },
    {
        path: "performanceInfoadd",
        name: "AdminperformanceInfoAdd",
        component: () => import("@/views/performanceInfo/add"),
        meta: { title: "添加演出", authLogin: true }
    },
    {
        path: "performanceInfoupdt",
        name: "AdminperformanceInfoUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/performanceInfo/updt"),
        meta: { title: "编辑演出", authLogin: true }
    },
    {
        path: "performanceInfodetail",
        props: route => ({ id: route.query.id }),
        name: "AdminperformanceInfoDetail",
        component: () => import("@/views/performanceInfo/detail"),
        meta: { title: "演出详情", authLogin: true }
    },
    {
        path: "performanceType",
        name: "AdminperformanceTypeList",
        component: () => import("@/views/performanceType/list"),
        meta: { title: "演出分类列表", authLogin: true }
    },
    {
        path: "performanceTypeadd",
        name: "AdminperformanceTypeAdd",
        component: () => import("@/views/performanceType/add"),
        meta: { title: "添加演出分类", authLogin: true }
    },
    {
        path: "performanceTypeupdt",
        name: "AdminperformanceTypeUpdt",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/performanceType/updt"),
        meta: { title: "编辑演出分类", authLogin: true }
    },
    {
        path: "myhotelbookings",
        name: "AdminHotelListBooking",
        component: () => import("@/views/booking/myhotelbookings"),
        meta: { title: "酒店列表", authLogin: true }
    },
    {
        path: "hotelbooking_list",
        name: "AdminHotelBookingList",
        component: () => import("@/views/booking/booking_list.vue"),
        meta: { title: "酒店列表", authLogin: true }
    },
]
